//
//  HHBaseViewController.m
//  HHBroker
//
//  Created by He Wei on 8/26/15.
//  Copyright © 2015 harry. All rights reserved.
//

#import "HHBaseViewController.h"
#import "JiaYuanShareData.h"


@interface HHBaseViewController () <UIAlertViewDelegate>

@end

@implementation HHBaseViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        if (SYSTEM_IS_IOS7) {
            // self.edgesForExtendedLayout = UIRectEdgeNone;
            // self.automaticallyAdjustsScrollViewInsets = NO;
        }
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)callANumber:(NSString *)number
{
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", number]];
    if ([[UIApplication sharedApplication] canOpenURL:url]) {
        [[UIApplication sharedApplication] openURL:url];
        
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
